package net.maku.qdd.convert;

import net.maku.qdd.entity.MerchantEntity;
import net.maku.qdd.vo.MerchantVO;
import net.maku.qdd.vo.MerchantExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商家
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface MerchantConvert {
    MerchantConvert INSTANCE = Mappers.getMapper(MerchantConvert.class);

    MerchantEntity convert(MerchantVO vo);

    MerchantVO convert(MerchantEntity entity);

    List<MerchantVO> convertList(List<MerchantEntity> list);

    List<MerchantEntity> convertList2(List<MerchantVO> list);

    MerchantExcelVO convertToExcel(MerchantEntity entity);

    List<MerchantExcelVO> convertExcelList(List<MerchantEntity> list);

    MerchantEntity convertFromExcel(MerchantExcelVO excelVO);

    List<MerchantEntity> convertExcelList2(List<MerchantExcelVO> list);
}